//
//  DynamicCell.h
//  Qianbancaifu
//
//  Created by SYLH on 16/4/26.
//  Copyright © 2016年 SYLH. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DynamicModel.h"
#import "DynamicContentView.h"
#import "DynamicRedCountView.h"


@class DynamicCell;

typedef NS_ENUM(NSInteger, DynamicBottomButtonTag) {
    LikeBtn_tag = 0,              //点赞按钮
    ReportBtn_tag = 1,            //举报
    ContactBtn_tag = 2,              //点击用户
    

};

@protocol DynamicClickContentDelegate <NSObject>

@optional

//点赞.举报。。。。
-(void)likeDynamicWithSender:(UIView *)sender
                   clickCell:(DynamicCell *)cell;

//删除
-(void)deleteDynamicWithCell:(DynamicCell *)cell;

//显示更多
-(void)isShowMoreContent:(BOOL)showMore withCell:(DynamicCell *)cell sender:(UIButton *)sender;

-(void)processCommunityUrlLink:(NSString *)link cell:(DynamicCell *)cell;

@end


@interface DynamicCell : UITableViewCell

@property (nonatomic,assign) id<DynamicClickContentDelegate> delegate;


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier;

-(void)creatCellWithModel:(DynamicModel *)model
               showDelete:(BOOL)showDelete
          showReportCount:(BOOL)showReportCount;

#pragma mark - 点赞数改变
-(void)changeLikeNumWithDynamic:(DynamicModel*)model;




@end
